// 这是医院详情的接口
// 主页的所有接口
import request from "../../utils/request";
enum API{
  // 使用了枚举就可以在枚举中随时修改接口路径
  HoSPITAL_URL = '/api/hosp/hospital/',//医院数据
  HOSPITAL_DEPARTMENT = '/api/hosp/hospital/department/'
}
export const hospital_detail = (hoscode: string) => request.get<any>(API.HoSPITAL_URL + hoscode)
export const hospital_department = (hoscode:string)=>request.get<any>(API.HOSPITAL_DEPARTMENT+hoscode)